from public.action import *
from public.business import *
from public.testData import *
from public.tools import *
import time

testCase = "DBshop008-查看支付记录流程"
#进入后台销售管理支付记录
firefox=openBrowser(url)
firefox.get(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu2(firefox,'销售管理','支付记录')

time.sleep(3)
# 断言：是否有已支付或者未支付显示的订单
try:
    firefox.find_element_by_xpath("//td[text()='已支付'or text()='未支付']")
    writeLog("%s 测试通过"%testCase)
except:
    writeLog("%s 测试失败" % testCase)
    getPhoto(firefox)
firefox.quit()
